package com.yidu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yidu.utils.BaseBean;

import java.util.Date;
import java.io.Serializable;

/**
 * (STrolley)实体类
 *
 * @author wanghong
 * @since 2021-07-29 16:30:23
 */
public class STrolley extends BaseBean implements Serializable {
    private static final long serialVersionUID = -84057821979568306L;
    /**
     * 购物车id
     */
    private Integer trid;
    /**
     * 用户id
     */
    private Integer userid;
    /**
     * 商品id
     */
    private Integer coid;
    /**
     * 商品数量
     */
    private Integer conum;
    /**
     * 总金额
     */
    private Double cosum;
    /**
     * 加入时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date codate;


    public Integer getTrid() {
        return trid;
    }

    public void setTrid(Integer trid) {
        this.trid = trid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getCoid() {
        return coid;
    }

    public void setCoid(Integer coid) {
        this.coid = coid;
    }

    public Integer getConum() {
        return conum;
    }

    public void setConum(Integer conum) {
        this.conum = conum;
    }

    public Double getCosum() {
        return cosum;
    }

    public void setCosum(Double cosum) {
        this.cosum = cosum;
    }

    public Date getCodate() {
        return codate;
    }

    public void setCodate(Date codate) {
        this.codate = codate;
    }

}
